package com.book.entity;/**
 * Created by CoolWen on 2017/5/12.
 */

import java.util.List;

/**
 * @author CoolWen
 * @version 2017-05-12 9:36
 */
public class Pager<E> {
    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }



    public int getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(int totalRecord) {
        this.totalRecord = totalRecord;
    }



    public List<E> getDatas() {
        return datas;
    }

    public void setDatas(List<E> datas) {
        this.datas = datas;
    }

    private int pageIndex;//第几页
    private int pageSize;//每页显示多少条
    private int totalRecord;//总共多少条记录

    public int[] getAllPage() {
        return allPage;
    }

    public void setAllPage(int[] allPage) {
        this.allPage = allPage;
    }

    public int getAllPages() {
        return allPages;
    }

    public void setAllPages(int allPages) {
        this.allPages = allPages;
    }

    private int allPages;
    private int allPage[];//总共多少页
    private List<E> datas;//放置具体数据的列表


}
